← Index
NYTProf Performance Profile   
For starman worker -M FindBin --max-requests 50 --workers 2 --user=kohadev-koha --group kohadev-koha --pid /var/run/koha/kohadev/plack.pid --daemonize --access-log /var/log/koha/kohadev/plack.log --error-log /var/log/koha/kohadev/plack-error.log -E deployment --socket /var/run/koha/kohadev/plack.sock /etc/koha/sites/kohadev/plack.psgi
  Run on Fri Jan 8 14:31:06 2016
Reported on Fri Jan 8 14:31:39 2016

Filename(eval 1133)[/usr/lib/x86_64-linux-gnu/perl5/5.20/Template/Document.pm:78]
StatementsExecuted 4 statements in 2µs
Eval Invoked At/usr/lib/x86_64-linux-gnu/perl5/5.20/Template/Document.pm line 78
Sibling evals1, 2, 3, 4, 5, 6, 7, 8, 9, 10
Line State
ments
Time
on line
Calls Time
in subs
Code
1sub {
21300ns my $context = shift || die "template sub called without context\n";
312µs12µs my $stash = $context->stash;
# spent 2µs making 1 call to Template::Context::stash
41200ns my $output = '';
51100ns my $_tt_error;
6
7 eval { BLOCK: {
8#line 1 "/home/vagrant/kohaclone/koha-tmpl/intranet-tmpl/prog/en/includes/doc-head-close.inc"
9# USE
10$stash->set('Koha',
11 $context->plugin('Koha'));
12$output .= "\n";
13#line 2 "/home/vagrant/kohaclone/koha-tmpl/intranet-tmpl/prog/en/includes/doc-head-close.inc"
14# USE
15$stash->set('AudioAlerts',
16 $context->plugin('AudioAlerts'));
17$output .= "\n";
18#line 3 "/home/vagrant/kohaclone/koha-tmpl/intranet-tmpl/prog/en/includes/doc-head-close.inc"
19# USE
20$stash->set('String',
21 $context->plugin('String'));
22$output .= "\n<meta http-equiv=\"Content-Type\" content=\"text/html; charset=utf-8\" />\n<link rel=\"shortcut icon\" href=\"";
23#line 5 "/home/vagrant/kohaclone/koha-tmpl/intranet-tmpl/prog/en/includes/doc-head-close.inc"
24if (($stash->get('IntranetFavicon'))) {
25#line 5 "/home/vagrant/kohaclone/koha-tmpl/intranet-tmpl/prog/en/includes/doc-head-close.inc"
26$output .= $stash->get('IntranetFavicon');
27}
28else {
29#line 5 "/home/vagrant/kohaclone/koha-tmpl/intranet-tmpl/prog/en/includes/doc-head-close.inc"
30$output .= $stash->get('interface');
31$output .= "/";
32#line 5 "/home/vagrant/kohaclone/koha-tmpl/intranet-tmpl/prog/en/includes/doc-head-close.inc"
33$output .= $stash->get('theme');
34$output .= "/img/favicon.ico";
35}
36
37$output .= "\" type=\"image/x-icon\" />\n\n<link rel=\"stylesheet\" type=\"text/css\" href=\"";
38#line 7 "/home/vagrant/kohaclone/koha-tmpl/intranet-tmpl/prog/en/includes/doc-head-close.inc"
39$output .= $stash->get('interface');
40$output .= "/lib/jquery/jquery-ui.css\" />\n<link rel=\"stylesheet\" type=\"text/css\" href=\"";
41#line 8 "/home/vagrant/kohaclone/koha-tmpl/intranet-tmpl/prog/en/includes/doc-head-close.inc"
42$output .= $stash->get('interface');
43$output .= "/lib/bootstrap/bootstrap.min.css\" />\n<link rel=\"stylesheet\" type=\"text/css\" href=\"";
44#line 9 "/home/vagrant/kohaclone/koha-tmpl/intranet-tmpl/prog/en/includes/doc-head-close.inc"
45$output .= $stash->get('interface');
46$output .= "/lib/font-awesome/css/font-awesome.min.css\" />\n<link rel=\"stylesheet\" type=\"text/css\" media=\"print\" href=\"";
47#line 10 "/home/vagrant/kohaclone/koha-tmpl/intranet-tmpl/prog/en/includes/doc-head-close.inc"
48$output .= $stash->get('themelang');
49$output .= "/css/print.css\" />\n";
50#line 11 "/home/vagrant/kohaclone/koha-tmpl/intranet-tmpl/prog/en/includes/doc-head-close.inc"
51$output .= $context->include('intranetstylesheet.inc');
52$output .= "\n";
53#line 12 "/home/vagrant/kohaclone/koha-tmpl/intranet-tmpl/prog/en/includes/doc-head-close.inc"
54if (($stash->get('bidi'))) {
55$output .= "<link rel=\"stylesheet\" type=\"text/css\" href=\"";
56#line 12 "/home/vagrant/kohaclone/koha-tmpl/intranet-tmpl/prog/en/includes/doc-head-close.inc"
57$output .= $stash->get('themelang');
58$output .= "/css/right-to-left.css\" />";
59}
60
61$output .= "\n\n<script type=\"text/javascript\" src=\"";
62#line 14 "/home/vagrant/kohaclone/koha-tmpl/intranet-tmpl/prog/en/includes/doc-head-close.inc"
63$output .= $stash->get('interface');
64$output .= "/lib/jquery/jquery.js\"></script>\n<script type=\"text/javascript\" src=\"";
65#line 15 "/home/vagrant/kohaclone/koha-tmpl/intranet-tmpl/prog/en/includes/doc-head-close.inc"
66$output .= $stash->get('interface');
67$output .= "/lib/jquery/jquery-ui.js\"></script>\n<script type=\"text/javascript\" src=\"";
68#line 16 "/home/vagrant/kohaclone/koha-tmpl/intranet-tmpl/prog/en/includes/doc-head-close.inc"
69$output .= $stash->get('interface');
70$output .= "/lib/shortcut/shortcut.js\"></script>\n<script type=\"text/javascript\" src=\"";
71#line 17 "/home/vagrant/kohaclone/koha-tmpl/intranet-tmpl/prog/en/includes/doc-head-close.inc"
72$output .= $stash->get('interface');
73$output .= "/lib/jquery/plugins/jquery.cookie.min.js\"></script>\n<script type=\"text/javascript\" src=\"";
74#line 18 "/home/vagrant/kohaclone/koha-tmpl/intranet-tmpl/prog/en/includes/doc-head-close.inc"
75$output .= $stash->get('interface');
76$output .= "/lib/jquery/plugins/jquery.highlight-3.js\"></script>\n<script type=\"text/javascript\" src=\"";
77#line 19 "/home/vagrant/kohaclone/koha-tmpl/intranet-tmpl/prog/en/includes/doc-head-close.inc"
78$output .= $stash->get('interface');
79$output .= "/lib/bootstrap/bootstrap.min.js\"></script>\n<script type=\"text/javascript\" src=\"";
80#line 20 "/home/vagrant/kohaclone/koha-tmpl/intranet-tmpl/prog/en/includes/doc-head-close.inc"
81$output .= $stash->get('interface');
82$output .= "/lib/jquery/plugins/jquery.validate.min.js\"></script>\n\n";
83#line 24 "/home/vagrant/kohaclone/koha-tmpl/intranet-tmpl/prog/en/includes/doc-head-close.inc"
84if (($stash->get('login'))) {
85$output .= "\n <link rel=\"stylesheet\" type=\"text/css\" href=\"";
86#line 23 "/home/vagrant/kohaclone/koha-tmpl/intranet-tmpl/prog/en/includes/doc-head-close.inc"
87$output .= $stash->get('themelang');
88$output .= "/css/login.css\" />\n";
89}
90
91$output .= "\n";
92#line 25 "/home/vagrant/kohaclone/koha-tmpl/intranet-tmpl/prog/en/includes/doc-head-close.inc"
93if (($stash->get('IntranetUserCSS'))) {
94$output .= "<style type=\"text/css\">";
95#line 25 "/home/vagrant/kohaclone/koha-tmpl/intranet-tmpl/prog/en/includes/doc-head-close.inc"
96$output .= $stash->get('IntranetUserCSS');
97$output .= "</style>";
98}
99
100$output .= "\n\n<!-- koha core js -->\n<script type=\"text/javascript\" src=\"";
101#line 28 "/home/vagrant/kohaclone/koha-tmpl/intranet-tmpl/prog/en/includes/doc-head-close.inc"
102$output .= $stash->get('themelang');
103$output .= "/js/staff-global.js\"></script>\n\n";
104#line 30 "/home/vagrant/kohaclone/koha-tmpl/intranet-tmpl/prog/en/includes/doc-head-close.inc"
105$output .= $context->include('validator-strings.inc');
106$output .= "\n";
107#line 37 "/home/vagrant/kohaclone/koha-tmpl/intranet-tmpl/prog/en/includes/doc-head-close.inc"
108if (($stash->get('IntranetUserJS'))) {
109$output .= "\n <script type=\"text/javascript\">\n //<![CDATA[\n ";
110#line 34 "/home/vagrant/kohaclone/koha-tmpl/intranet-tmpl/prog/en/includes/doc-head-close.inc"
111$output .= $stash->get('IntranetUserJS');
112$output .= "\n //]]>\n </script>\n";
113}
114
115$output .= "\n\n";
116#line 57 "/home/vagrant/kohaclone/koha-tmpl/intranet-tmpl/prog/en/includes/doc-head-close.inc"
117if (($stash->get('virtualshelves') || $stash->get('intranetbookbag'))) {
118$output .= "\n<script type=\"text/javascript\">\n //<![CDATA[\n var MSG_BASKET_EMPTY = _(\"Your cart is currently empty\");\n var MSG_RECORD_IN_BASKET = _(\"This item is already in your cart\");\n var MSG_RECORD_ADDED = _(\"This item has been added to your cart\");\n var MSG_NRECORDS_ADDED = _(\"%s item(s) added to your cart\");\n var MSG_NRECORDS_IN_BASKET = _(\"%s already in your cart\");\n var MSG_NO_RECORD_SELECTED = _(\"No item was selected\");\n var MSG_NO_RECORD_ADDED = _(\"No item was added to your cart (already in your cart) !\");\n var MSG_CONFIRM_DEL_BASKET = _(\"Are you sure you want to empty your cart?\");\n var MSG_CONFIRM_DEL_RECORDS = _(\"Are you sure you want to remove the selected items?\");\n var MSG_IN_YOUR_CART = _(\"Items in your cart: %s\");\n var MSG_NON_RESERVES_SELECTED = _(\"One or more selected items cannot be reserved.\");\n //]]>\n </script>\n\n <script type=\"text/javascript\" src=\"";
119#line 56 "/home/vagrant/kohaclone/koha-tmpl/intranet-tmpl/prog/en/includes/doc-head-close.inc"
120$output .= $stash->get('themelang');
121$output .= "/js/basket.js\"></script>\n";
122}
123
124$output .= "\n\n";
125#line 66 "/home/vagrant/kohaclone/koha-tmpl/intranet-tmpl/prog/en/includes/doc-head-close.inc"
126if ($stash->get('LocalCoverImages')) {
127$output .= "\n <script type=\"text/javascript\" src=\"";
128#line 60 "/home/vagrant/kohaclone/koha-tmpl/intranet-tmpl/prog/en/includes/doc-head-close.inc"
129$output .= $stash->get('themelang');
130$output .= "/js/localcovers.js\"></script>\n <script type=\"text/javascript\">\n //<![CDATA[\n var NO_LOCAL_JACKET = _(\"No cover image available\");\n //]]>\n </script>\n";
131}
132
133$output .= "\n\n";
134#line 87 "/home/vagrant/kohaclone/koha-tmpl/intranet-tmpl/prog/en/includes/doc-head-close.inc"
135if ($stash->get(['Koha', 0, 'Preference', [ 'AudioAlerts' ]]) || $stash->get('AudioAlertsPage')) {
136$output .= "\n <script type=\"text/javascript\">\n //<![CDATA[\n var AUDIO_ALERT_PATH = '";
137#line 71 "/home/vagrant/kohaclone/koha-tmpl/intranet-tmpl/prog/en/includes/doc-head-close.inc"
138$output .= $stash->get('interface');
139$output .= "/";
140#line 71 "/home/vagrant/kohaclone/koha-tmpl/intranet-tmpl/prog/en/includes/doc-head-close.inc"
141$output .= $stash->get('theme');
142$output .= "/sound/';\n var AUDIO_ALERTS = JSON.parse( '";
143#line 72 "/home/vagrant/kohaclone/koha-tmpl/intranet-tmpl/prog/en/includes/doc-head-close.inc"
144
145# FILTER
146$output .= do {
147 my $output = '';
148 my $_tt_filter = $context->filter('replace', [ '\'', ('' . "\\'") ])
149 || $context->throw($context->error);
150
151$output .= $stash->get(['AudioAlerts', 0, 'AudioAlerts', 0]);
152
153 &$_tt_filter($output);
154};
155
156$output .= "' );\n //]]>\n\n \$( document ).ready(function() {\n if ( AUDIO_ALERTS ) {\n for ( var k in AUDIO_ALERTS ) {\n var alert = AUDIO_ALERTS[k];\n if ( \$( alert.selector ).length ) {\n playSound( alert.sound );\n break;\n }\n }\n }\n });\n </script>\n";
157}
158
159$output .= "\n\n<!-- For keeping the text when navigating the search tabs -->\n";
160#line 90 "/home/vagrant/kohaclone/koha-tmpl/intranet-tmpl/prog/en/includes/doc-head-close.inc"
161$output .= $context->include('searchbox-keep-text.inc');
162$output .= "\n";
163 } };
164 if ($@) {
165 $_tt_error = $context->catch($@, \$output);
166 die $_tt_error unless $_tt_error->type eq 'return';
167 }
168
169 return $output;
170}
171
172;